package com.imooc.array;

public class Student {

    private String name;
    private int score;

    public Student(String name, int score) {
        this.name = name;
        this.score = score;
    }

    @Override
    public String toString() {
        return String.format("{student : name = %s, score = %d}", name, score);
    }

    public static void main(String[] args) {
        Array arr = new Array();
        arr.addLast(new Student("mxf", 99));
        arr.addLast(new Student("zyn", 100));
        System.out.println(arr);
    }
}
